﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title></title>
    <script src="/Scripts/szjt-allScripts.js" type="text/javascript"></script>
</head>
<body>
    <div id="studentInfo">
        <table id="Student" class="szjt-edittable" width="100%">
	        <Input type="hidden" id="Student_StudentGuid" class="easyui-validatebox" />
	        <tr>
		        <td required="true">学员姓名</td>
		        <td><input id="Student_StudentName" type="text" class="easyui-validatebox" required="true" /></td>
		        <td required="true">学员性别</td>
		        <td><select id="Student_StudentSex" type="text" class="szjt-codecombo" required="true" category="性别" /></td>
	        </tr>
	        <tr>
		        <td required="true">学员证件类型</td>
		        <td><select id="Student_StudentIdType" type="text" class="szjt-codecombo" required="true" category="证件类型" /></td>
		        <td required="true">学员证件号</td>
		        <td><input id="Student_StudentIdCode" type="text" class="easyui-validatebox" required="true" /></td>
	        </tr>
	        <tr>
		        <td>学员年龄</td>
		        <td><input id="Student_StudentAge" type="text" class="easyui-validatebox" /></td>
		        <td required="true">学员号</td>
		        <td><input id="Student_StudentID" type="text" class="easyui-validatebox" required="true" /></td>
	        </tr>
	        <tr>
		        <td>学员手机号</td>
		        <td><input id="Student_StudentMobile" type="text" class="easyui-validatebox" /></td>
		        <td>学员邮箱</td>
		        <td><input id="Student_StudentMail" type="text" class="easyui-validatebox" /></td>
	        </tr>
	        <tr>
		        <td>学员帐号</td>
		        <td><input id="Student_StudentAccount" type="text" class="easyui-validatebox" /></td>
		        <td>学员密码</td>
		        <td><input id="Student_StudentPassword" type="text" class="easyui-validatebox" /></td>
	        </tr>
	        <tr>
		        <td required="true">学员状态</td>
		        <td><select id="Student_StudentStatus" type="text" class="szjt-codecombo" required="true"category="学员状态" /></td>
	        </tr>
        </table>
    </div>
    <script type="text/javascript">
    $(document).ready(function () {
        //var $userAppXml = $(utility.xml.convertXmlStringToDoc(PrjConstant.Business.Coach.CoachInfo.Template));
        // $userAppXml.find("CoachStatus").text(PrjConstant.CoachStatus.Begin);
        $("#studentInfo").formpanel({
            formType: "edit",
            formTemplate: PrjConstant.Business.Student.StudentInfo.Template,
            guidNode: "StudentGuid",
            guidInput: "#Student_StudentGuid",
            taskGuid: PrjConstant.SysInfo.TaskGuid,
            dataType: PrjConstant.Business.Student.StudentInfo.DataType,
            onExecuteComplete: function (submitResult) {
                utility.message.promptOperationResult("保存", "学员信息", (submitResult == 0));
                if (submitResult == 0) {
                    utility.page.closeDialog(true);
                }
                //$.fn.szjt_popupDialog("close");
            }
        });
        //            debugger;
        //            $("#UserAppTable_CoachMemo").val("tests");
        //            $("#UserAppTable_CoachFormID").val(dataService.getApplyformID(PrjConstant.Asset.UserCoach.DataType, Session.LoginUser().UserGuid))
        //审批按钮
    });
    </script>
</body>
</html>
